home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Grand Slam 3
/
Grand Slam 3.iso
/
030
/
airpt119.arj
/
AIRPT049.API
< prev
next >
Wrap
Text File
|
1995-09-26
|
3KB
|
129 lines
; Fichier include SCASM AIRPT049.API pour POLY3D TYPE = &COLLINE1
; SCASM include file AIRPT049.API for POLY3D TYPE = &COLLINE1
; -----------------------------------------------------
; Very small mountain or hillside macro For use With Scasm.exe
; scenery assembler by Manfred Moldenhauer CIS:100117.1465
; You must change the point table to your needs.
; Remember that scale factor 4 means you'll have to divide
; real distances with 4.
; If you change this macro, remember to draw triangle polygones only.
; You may have to use a decompiler to verify the direction of the
; vector, both for the polygons and the vector jump instructions
; if you make changes e.g..<vbg>
; ------------------------------------------------------
; Prepared by Jan Nielsen CIS 100044,1631
; ------------------------------------------------------
; %1 et %2 lisent les coordonnées / lat-long
; %4 lit la taille indiquée par airport / size
; %5 : orientation / heading
Area( B %1 %2 %3 )
PerspectiveCall( :A2 )
Jump( :A1 )
:A2
Perspective
RefPoint( 2 :A3 %4 %1 %2 v1= %10 E= %11 )
RotatedCall( :R1 0 0 %5 )
Return
:R1
Call( :Test )
VecPoints( a 1
-0 0 -367
-181 0 -266
-200 0 120
30 0 359
171 0 237
104 0 -260
-13 48 -195
61 48 203
)
IfVarAnd( :T100 0340 FFFF )
ShadedColor( 21 F0 )
Bitmap( %6 0 0 0 0 )
Dwx( 81 1 )
Inst_7D
ShadedTexPoly( a
1 125 150
7 250 0
2 0 0
)
Inst_7D
ShadedTexPoly( a
3 125 150
2 250 0
7 0 0
)
Inst_7D
ShadedTexPoly( a
8 125 150
3 250 0
7 0 0
)
Inst_7D
ShadedTexPoly( a
4 125 150
3 250 0
8 0 0
)
Inst_7D
ShadedTexPoly( a
5 125 150
4 250 0
8 0 0
)
Inst_7D
ShadedTexPoly( a
6 125 150
5 250 0
8 0 0
)
Inst_7D
ShadedTexPoly( a
7 125 150
6 250 0
8 0 0
)
Inst_7D
ShadedTexPoly( a
1 125 150
6 250 0
7 0 0
)
Dwx( 81 0 )
Jump( :T200 )
:T100
ShadedColor( F021 )
Poly( a 1 7 2 )
Poly( a 3 2 7 )
Poly( a 8 3 7 )
Poly( a 4 3 8 )
Poly( a 5 4 8 )
Poly( a 6 5 8 )
Poly( a 7 6 8 )
Poly( a 1 6 7 )
:T200
Return
:Test
VectorJump( :NoCrash ai 1 7 2 )
VectorJump( :NoCrash ai 3 2 7 )
VectorJump( :NoCrash ai 8 3 7 )
VectorJump( :NoCrash ai 4 3 8 )
VectorJump( :NoCrash ai 5 4 8 )
VectorJump( :NoCrash ai 6 5 8 )
VectorJump( :NoCrash ai 7 6 8 )
VectorJump( :NoCrash ai 1 6 7 )
SetVar( 284 2 )
:NoCrash
Return
:A3
Return
:A1
EndA